#include "Simulation.hpp"


int main()
{
    clock_t startTime, endTime;
    startTime = clock();
    double t;
    double a = 1.0;
    double b = 1.0;
    double zt = 3.0;
    int_fast64_t NPHOTON = 1000000;
    Simulation simulation(a,b,zt,NPHOTON);
    simulation.start();
    endTime = clock();
    t = (double)(endTime - startTime) / CLOCKS_PER_SEC;
    if (t<60)
    {
        std::cout << "The running time is: " <<t<< "s" << std::endl;
    }
    else if (t<3600)
    {
        std::cout << "The running time is: " <<((int)t)/60<< "min" <<((int)t)%60<<"s"<< std::endl;
    }
    else
    {
        std::cout << "The running time is: " <<((int)t)/3600<< "h" <<(((int)t)%3600)%60<<"min"<< std::endl;
    }
    
    return 0;
}

